<?php
session_start();
include '../database/connect.php';
$lesson_id=$_GET['lesson_id'];
$tid=$_GET['quiz_id'];
$query = "DELETE FROM quizes WHERE quiz_id='$tid'";
//var_dump($query);
$result = mysql_query($query) or die("Error executing '$query':" . mysql_error());
header("Location:../views/quizes.php?lesson_id=$lesson_id");
?>
<p class="error">Quiz deleted!</p>